package com.examination.service.stationModel;

import com.examination.dao.stationModel.StationDao;
import com.examination.entity.Station;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class StationService implements StationDao{
    @Autowired
    private StationDao stationDao;

    //分页模糊查询站点信息
    @Override
    public List<Station> findStation(Map map) {
        return stationDao.findStation(map);
    }

    //增加站点信息
    @Override
    public int insertStation(Map map) {
        return stationDao.insertStation(map);
    }

    //删除站点信息
    @Override
    public int deleteStation(Map map) {
        return stationDao.deleteStation(map);
    }

    //修改站点信息
    @Override
    public int updateStation(Map map) {
        return stationDao.updateStation(map);
    }

    //统计总数
    @Override
    public long Total(Map map) {
        return stationDao.Total(map);
    }

    //下拉框查询站点信息
    @Override
    public List<Station> selectStation(Map map) {
        return stationDao.selectStation(map);
    }

    //计算天数
    @Override
    public int count(Map map) {
        return stationDao.count(map);
    }

    //统计站点总数
    @Override
    public int countStation(Map map) {
        return stationDao.countStation(map);
    }
}
